package com.wjw.service.Impl;

import com.wjw.mapper.UserMapper;
import com.wjw.pojo.User;
import com.wjw.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> list() {
        List<User> userList = userMapper.list();
        return userList;
    }

    @Override
    public void add(User user) {
        userMapper.add(user);
    }
}
